AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')

function ENT:Initialize()
	self.Entity:SetModel( "models//props_phx//amraam.mdl" )
	self.BaseClass.Initialize(self)
	
	self.Entity.speed = 600
	self.Entity.minspeed = 600
	self.Entity.maxspeed = 1800
	self.Entity.acceltime = 3
	
	local hackent = ents.Create("helper_point")
	hackent:SetPos(self.Entity:LocalToWorld(Vector(-80, 0, 10)))
	hackent:Spawn()
	hackent:SetParent(self.Entity)
	local trail = util.SpriteTrail(hackent, 0, self.Entity.Color, false, 10, 0, 3.2, 0.25, "trails/smoke.vmt")
	--trail:SetParent(self.Entity)
end

function ENT:DrawImpact(entity, normal)
	CDEffect_impact_solid(self.Entity:GetPos(), self.Entity.Color, 100, 1.2, normal, entity)
	CDEffect_impact_concussion(self.Entity:GetPos(), self.Entity.Color, 120, 0.5, entity)
end

